home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
005
/
hb20pt1.arc
/
INSFLOP.BAT
< prev
next >
Wrap
DOS Batch File
|
1986-03-20
|
6KB
|
247 lines
rem INSFLOP.BAT (%1=2nd flop drive, [%2=yes, %3=return]) Mar.19,1986
if %3/ == return/ goto makeret
if %2/ == return/ goto makeret
a:
cd \
cls
echo
HomeBase FLOPPY DISK Installation
echo ---------------------------------
if %2/ == yes/ goto yes3
echo A copy of HomeBase DISK 1 will now be changed to support your floppy
echo based system. If you wish, a copy of your Boot disk can also be changed
echo so that HomeBase is installed automatically every time you boot up.
echo PLEASE use copies, not the originals!
pause
cls
echo
For this installation you will need:
echo
1) A COPY (not the master) of each HomeBase DISK (1 and 2).
echo The originals are write-protected so they cannot be
echo inadvertently erased. Yet HomeBase needs to write on the
echo disks (for Notebase, Calendar, and other files.) If you
echo do not have copies yet, have two blank disks ready.
echo
2) (Optional) A copy of your "BOOT" disk with at least
echo 38 Kilobytes of unused (free) space on it. This should
echo be a COPY of the disk you insert in drive A when you
echo first turn on your computer. The CONFIG.SYS and
echo AUTOEXEC.BAT files (if any) should also be there.
pause
cls
echo
Some computers have one, some have two (2) floppy disk drives.
ask Do you have two (2) disk drives (A: and %1)
if errorlevel 2 echo
If you have only one drive, this drive becomes both A: and %1.
if errorlevel 2 echo Be very careful to insert the correct disk when you are asked to insert
if errorlevel 2 echo "disk A:" or "disk %1" -- it can be quite confusing.
if errorlevel 2 echo (REMEMBER, HomeBase DISK 1 is the "batch" disk.)
if errorlevel 2 pause
cls
echo .
:yes3
:makeret
echo
Checking if disk write-protected...
checkwp A:
if errorlevel 1 makecopy %1 %2 xxx
if exist autoexec.old del autoexec.old
if exist homebase.bat echo
WARNING -- This is a second install of HomeBase.
if exist homebase.bat echo (DISK 1 restored to original state...)
if %2/ == yes/ goto yes5
if exist homebase.bat pause
:yes5
copy autoflop.bat homebase.bat > nul
cls
echo
Please place your BOOT disk (copy) in Drive %1, the one
echo that may have an AUTOEXEC.BAT file on it. If you don't have
echo (or want to modify) a boot disk just say NO below.
ask BOOT disk in %1
if not errorlevel 2 copy %1autoexec.bat a:autoexec.old
cls
if %2/ == yes/ goto yes9
echo
-- ANSWER CAREFULLY --
echo A "yes" answer here will finish the permanent
echo installation of HomeBase on the disk
ask Ok to install HOMEBASE
if errorlevel 2 insquit
:yes9
if exist autoexec.old echo
* * * Installing HomeBase * * * (please wait)
if exist autoexec.old goto doboot
cls
echo
* * HomeBase now installed for Floppy System * *
:flopdone
echo
To run HomeBase from DISK 1 you must:
echo 1) Place DISK 1 in Drive A:
echo 2) Place DISK 2 in Drive %1
echo 3) Type:
if %1/ == B:/ echo a:homebase
if not %1/ == B:/ echo a:homebase %1
echo 4) HomeBase will load into memory and when done
echo will give the message:
echo "Press Alt/Shift/H for HomeBase".
echo 5) Remove DISK 1. DISK 2 must stay in Drive %1
echo (whenever HomeBase is active.)
if %2/ == yes/ insdone fff
ask Do you want info about Application disks
if errorlevel 2 insdone fff
cls
echo
- NOTES for APPLICATION Disks -
echo To add HomeBase to a separate applications disk such as for Lotus or
echo DBase or WordStar, place this applications disk in Drive A:, put
echo HomeBase disk 2 in Drive %1, and type:
echo copy %1hb.ovr a:
echo copy %1hb.hlp a:
echo copy %1hb.ndx a:
echo If hb.ovr will not fit, then refer to the alternate schemes described
echo in the Install document. If the first file fits but the hb.hlp does
echo not fit (i.e. you get an error message), HomeBase will still work but
echo you will have to rely on your HomeBase manual for help. The hb.ndx
echo file is optional.
echo This information is in your Installation document.
pause
insdone fff
:doboot
echo
( Modifying the BOOT disk in %1...)
checkwp %1
if errorlevel 1 echo Disk is WRITE protected! Can't modify it.
if errorlevel 1 goto dob30
diskfree %1 floppy ;(checks floppy for 37k free space)
if not errorlevel 1 goto dob32
echo
NOT enough free space on %1. Need about 38k. Erase unneeded
echo files on your BOOT disk and try again.
:dob30
ask Ok to abandon BOOT disk modification
if not errorlevel 2 goto flopdone
:dob32
copy autoexec.old+autoboot.bat %1autoexec.bat/a >nul
copy a:hbkernel.com %1
copy a:hbasync.com %1
copy a:hbvsi.com %1
cls
echo
Your BOOT disk in Drive %1 has been modified for booting-up HomeBase
echo by putting BOOT disk in Drive A: and HomeBase DISK 2 in Drive B:.
ask Do you want DISK 2 to be in Drive %1 instead of Drive B:
if not errorlevel 2 echo
To do this you must MODIFY the autoexec.bat file on the BOOT disk
if not errorlevel 2 echo by changing all occurences of B: to %1.
if not errorlevel 2 pause
echo
Installation of HomeBase has created or modified the AUTOEXEC.BAT file.
echo (if any). Several lines relating to HomeBase have been placed at
echo the very end. However, if your original AUTOEXEC.BAT called
echo another BAT file to complete the boot-up process, you must fix this
echo by placing the call to the other BAT file at the end, after the
echo HomeBase lines. Do this before re-booting.
ask Do you understand the above
if errorlevel 2 echo ** That's ok, but if HomeBase doesn't work ask someone for help **
echo
HomeBase can also run directly from DISK 1. Here's how: (Please wait...)
goto flopdone